<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http:www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<include file="Common:cssjs" />
</head>
<body>
<div class="subnav">
  <div class="content-menu ib-a blue line-x"> <a href='{:U("Urlrule/index")}' class="on"><em>URL规则管理</em></a><span>|</span><a class="add fb" href="{:U("Urlrule/add")}"><em>添加规则</em></a> </div>
</div>
<style type="text/css">
	html{_overflow-y:scroll}
</style>
<div class="pad_10">
  <div class="table-list">
    <table width="100%" cellspacing="0" >
      <thead>
        <tr>
          <th width="60">ID</th>
          <th width="60">所属模块</th>
          <th width="60">名称</th>
          <th width="50">生成静态</th>
          <th>URL示例</th>
          <th>URL规则</th>
          <th width="80">管理操作</th>
        </tr>
      </thead>
      <tbody>
        <volist name="info" id="r">
        <tr>
          <td align='center'>{$r.urlruleid}</td>
          <td align="center">{$r.module}</td>
          <td align="center">{$r.file}</td>
          <td align="center"><if condition="$r['ishtml']"><font color="red">√</font><else /><font color="blue">×</font></if></td>
          <td>{$r.example}</td>
          <td>{$r.urlrule}</td>
          <td align='center' ><a href="{:U("Urlrule/edit",array("urlruleid"=>$r['urlruleid']))}">编辑</a> | <a href="javascript:confirmurl('{:U("Urlrule/delete",array("urlruleid"=>$r['urlruleid']))}','确认要删除吗？')">删除</a></td>
        </tr>
        </volist>
      </tbody>
    </table>
  </div>
</div>
<script type="text/javascript"> 
<!--
function edit(id) {
	art.dialog.open('?a=edit&m=Urlrule&g=Admin&urlruleid='+id, {
		title: '编辑规则《'+id+'》',
		id:'edit',
		ok:function(){
			var iframe = this.iframe.contentWindow;
			var form = iframe.document.getElementById('myform');
		    form.submit();
			//return false;
		},
		cancel: true
	});
	return true;
	art.dialog.open({
		title:'编辑规则《'+id+'》',
		id:'edit',
		iframe:'?a=edit&m=Urlrule&g=Admin&urlruleid='+id,
		width:'750',
		height:'300'
	}, function(){
		var d = window.top.art.dialog({id:'edit'}).data.iframe;
		d.document.getElementById('dosubmit').click();
		return false;
	}, function(){
		window.top.art.dialog({id:'edit'}).close()
	});
}
//-->
</script>
</body>
</html>